﻿include_directories("/usr/src/gtest/include")
include_directories(/usr/src/gtest)
set(TEST_SRC /usr/src/gtest/src/gtest-all.cc
        /usr/src/gtest/src/gtest_main.cc
        )
aux_source_directory(${PROJECT_SOURCE_DIR}/unittest UNITTEST_SRC_LIST)
message(STATUS ${PROJECT_SOURCE_DIR}/unittest)
add_executable(unit_test ${UNITTEST_SRC_LIST} ${TEST_SRC})
target_link_libraries(unit_test pthread ${PROJECT_NAME}_static ${LINK_LIB_LIST})
enable_testing()
add_test(NAME unit_test COMMAND unit_test)
